<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
  <title>凯达环卫APP</title>
  <script src="http://api.map.baidu.com/api?ak=ZjWLlaaOquvNohbogQHo5rGasrkS5CBs"></script>
  <script type="text/javascript" src="//api.map.baidu.com/library/LuShu/1.2/src/LuShu_min.js"></script>
  <script type="text/javascript" src="http://api.map.baidu.com/library/GeoUtils/1.2/src/GeoUtils_min.js"></script>
  <script type="text/javascript" src="cordova.js"></script>
  <script type="text/javascript" charset="utf-8">
    //页面加载后添加各事件监听
    // let onDeviceReady = function () {
    //   initBaiduMap();
    // };

    // function initBaiduMap() {
    //   console.log(111)
    //   // 进行定位
    //   if ('baidumap_location' in window) {
    //     baidumap_location.getCurrentPosition(function (result) {
    //       console.log(result);
    //     }, function (error) {
    //       console.error(error);
    //     });
    //   } else {
    //     console.error('baidumap_location is undefined');
    //   }
    // }

    // document.addEventListener("deviceready", onDeviceReady, false);
    function onLoad() {
      document.addEventListener("deviceready", onDeviceReady, false);
      document.addEventListener("resume", onResume, false);
      document.addEventListener("pause", onPause, false);
    }
    //Cordova加载完毕
    function onDeviceReady() {
    }

    //进入后台
    function onPause() {
    }

    //恢复到前台
    function onResume() {
    }
  </script>
</head>

<body>
  <div id="app"></div>
  <!-- built files will be auto injected -->


</body>

</html>